package com.divine.wn.car.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.divine.wn.car.persistence.BaseDataMapper;

@Service
public class BaseDataService {
	@Autowired
	private BaseDataMapper baseDataMapper;
	
	//@Transactional  在需要事务的时候加上这个标签。
	
	//获取车辆类型
	public List<HashMap<String,Object>> getCllx(){
		return baseDataMapper.getCllx();
	}
	
	public List<HashMap<String,Object>> getTC(String area_id){
		return baseDataMapper.getTC(area_id);
	}
	
	public List<HashMap<String,Float>> getTCData(String tcID){
		return baseDataMapper.getTCData(tcID);
	}
	public String  getNextRole(String workflowID){
		return baseDataMapper.getNextRole(workflowID);
	}
	
	public List<HashMap<String,Float>> getKhscf(String areaID){
		return baseDataMapper.getKhscf(areaID);
	}
	
}
